import React, { Component } from 'react'

export default class ListShow extends Component {
  state = {
    msgs: [
      '我要做一颗星星，有棱有角，还会发光',
      '人间忽晚，山河已秋',
      '愿学术自由之风劲吹'
    ]
  }

  render() {
    return (
      <div>
        <h2>名言</h2>
        <ul>
          {
            this.state.msgs.map((item, index) => {
              return <li key={index}>{item}</li>
            })
          }
        </ul>
      </div>
    )
  }

  
}
